import request from '@/utils/request'

// 查询points列表
export function listVideoPoints(query) {
  return request({
    url: '/points/VideoPoints/list',
    method: 'get',
    params: query
  })
}

// 查询points详细
export function getVideoPoints(userId) {
  return request({
    url: '/points/VideoPoints/' + userId,
    method: 'get'
  })
}

// 新增points
export function addVideoPoints(data) {
  return request({
    url: '/points/VideoPoints',
    method: 'post',
    data: data
  })
}

// 修改points
export function updateVideoPoints(data) {
  return request({
    url: '/points/VideoPoints',
    method: 'put',
    data: data
  })
}

// 删除points
export function delVideoPoints(userId) {
  return request({
    url: '/points/VideoPoints/' + userId,
    method: 'delete'
  })
}
